Pod::Spec.new do |s|
  s.name             = 'WDISFramework'
  s.version          = '6.11.2'
  s.summary          = 'Wonder iOS 聚合 SDK'
  s.description      = '内部聚合广告 + 数据上报一体化 SDK，仅支持真机 (iOS-arm64)。'
  s.homepage         = 'https://gitee.com/wonder_ios_sdk/WDISFramework_Spec'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '13710023492@163.com' => '13710023492@163.com' }

  # 通过 Git Tag 获取源码/二进制，不走 zip
  s.source           = { :git => 'https://gitee.com/wonder_ios_sdk/WDISFramework_Spec.git',
                         :tag => s.version.to_s }

  s.ios.deployment_target = '13.0'
  s.swift_versions        = ['5.0', '5.9']

# ========= 交付二进制静态库 =========
# ⚠️ 删除 s.source_files，因为不再让集成方编译源码
# ⚠️ 只保留 vendored_frameworks + public_header_files
s.vendored_frameworks = 'WDISFramework.framework'

# 明确哪些头文件对外可见（位于 framework/Headers/ 下）
# ↓ 新增两行 ↓
s.source_files         = 'WDISFramework.framework/Headers/*.h'
s.public_header_files  = 'WDISFramework.framework/Headers/*.h'

# CocoaPods 自动把 framework 内部的 .bundle / .nib 等资源收进来，
# 不需要再额外写 resource_bundles，除非你有独立散落的资源文件
# 若之前写的 bundle 路径已无效，可直接删掉
# 拷贝 framework 根目录里所有 png
s.resources = 'WDISFramework.framework/*.png'
  # 仅真机构建；排除模拟器 arm64，避免 lint/集成报错
  # 仅一次性赋值即可
s.pod_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
  'OTHER_LDFLAGS'                        => '-ObjC'
}

s.user_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

  # ========== 三方依赖（保持原版，删掉重复） ==========
s.dependency 'ThinkingDataCore','1.0.2'
s.dependency 'ThinkingSDK','3.0.4'
s.dependency 'Adjust','5.2.0'
s.dependency 'FBSDKCoreKit','18.0.0'
s.dependency 'FBSDKLoginKit','18.0.0'
s.dependency 'FBSDKShareKit','18.0.0'
s.dependency 'Google-Mobile-Ads-SDK', '~> 12.6.0'
s.dependency 'Firebase', '11.12.0'
s.dependency 'FirebaseAnalytics', '11.12.0'
s.dependency 'FirebaseMessaging', '11.12.0'
s.dependency 'FirebaseCrashlytics', '11.12.0'
s.dependency 'FirebaseDynamicLinks', '11.12.0'
s.dependency 'FirebaseRemoteConfig', '11.12.0'
s.dependency 'JJException', '0.2.13'
s.dependency 'TAThirdParty', '0.3.5'
s.dependency 'OdeeoSDK', '3.5.4'
s.dependency 'ThinkingDataCore' ,'1.0.2'
s.dependency 'AFNetworking', '4.0.1'

  # -------- IronSource 与广告聚合适配器 --------
  s.dependency 'IronSourceSDK', '8.10.0.0'
s.dependency 'IronSourceAdQualitySDK', '7.25.2'
s.dependency 'IronSourceAppLovinAdapter', '4.3.55.1'
s.dependency 'IronSourceBidMachineAdapter', '4.3.17.0'
s.dependency 'IronSourceBigoAdapter', '4.3.7.0'
s.dependency 'IronSourceChartboostAdapter', '4.3.22.1'
s.dependency 'IronSourceCSJAdapter', '4.3.25.0'
s.dependency 'IronSourceAdMobAdapter', '4.3.67.1'
s.dependency 'IronSourceHyprMXAdapter', '4.3.11.0'
s.dependency 'IronSourceInMobiAdapter', '4.3.29.1'
s.dependency 'IronSourceVungleAdapter', '4.3.45.1'
s.dependency 'IronSourceMintegralAdapter', '4.3.35.1'
s.dependency 'IronSourceMobileFuseAdapter', '4.3.8.1'
s.dependency 'IronSourceMolocoAdapter', '4.3.21.0'
s.dependency 'IronSourceOguryAdapter', '4.3.3.1'
s.dependency 'IronSourcePangleAdapter', '4.3.46.1'
s.dependency 'IronSourceSmaatoAdapter', '4.3.17.1'
s.dependency 'IronSourceUnityAdsAdapter', '4.3.52.1'
s.dependency 'IronSourceVerveAdapter', '4.3.6.1'
s.dependency 'IronSourceYandexAdapter', '4.3.22.1'
s.dependency 'IronSourceFyberAdapter', '4.3.43.1'
s.dependency 'zMaticoo', '1.5.4.3'
s.dependency 'TaurusxAdsSDK', '1.6.0'
s.dependency 'TaurusxAdsSDK/IronSourceAdapter', '1.6.0'
s.dependency 'Bidon', '0.8.0'
s.dependency 'ISBidonCustomAdapter', '0.8.0'
end
